﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="PollList.ascx.cs" Inherits="MpSoft.Web.AdminCP.Controls.Customer.PollList" %>
<%--chosen--%>
<link rel="stylesheet" href="http://static.mpsoft.vn/Context/css/plugins/chosen/chosen.css">
<%--dataTables--%>
<script src="http://static.mpsoft.vn/Context/js/plugins/jquery-ui/jquery.ui.datepicker.min.js"></script>
<%-- dataTables --%>
<script src="http://static.mpsoft.vn/Context/js/plugins/datatable/jquery.dataTables.min.js"></script>
<script src="http://static.mpsoft.vn/Context/js/plugins/datatable/TableTools.min.js"></script>
<script src="http://static.mpsoft.vn/Context/js/plugins/datatable/ColReorderWithResize.js"></script>
<script src="http://static.mpsoft.vn/Context/js/plugins/datatable/ColVis.min.js"></script>
<script src="http://static.mpsoft.vn/Context/js/plugins/datatable/jquery.dataTables.columnFilter.js"></script>
<script src="http://static.mpsoft.vn/Context/js/plugins/datatable/jquery.dataTables.grouping.js"></script>
<%--  Chosen  --%>
<script src="http://static.mpsoft.vn/Context/js/plugins/chosen/chosen.jquery.min.js"></script>
<div class="row">
    <br />
    <div class="col-sm-9">
    </div>
    <div class="col-sm-3 btn-form align-right">
        <a href="?mod=polledit" class="btn btn-green btn-large"><i class="glyphicon-circle_plus">&nbsp;</i> Thêm mới</a>
        <a id="cmdDelete" href="#" class="btn btn-large"><i class="glyphicon-circle_minus">&nbsp;</i> Xóa</a>
    </div>
</div>

<div class="row">
    <div class="col-sm-12">
        <div class="box box-color box-bordered green">
            <div class="box-title">
                <h3>
                    <i class="fa fa-table"></i>
                    Danh sách Poll
                </h3>
            </div>
            <div class="box-content nopadding">
                <table class="table table-bordered table-7 usertable table-hover table-nomargin table-striped dataTable-1 dataTable-reorder">
                    <thead>
                          <tr class='thefilter'>
                            <th></th>
                            <th></th>
                            <th>Tiêu đề</th>
                            <th class='hidden-350'>All</th>
                            <th class='hidden-1024'><%--Thứ tự--%></th>
                            <th class='hidden-480'><%--Options--%></th>
                        </tr>
                        <tr>
                            <th>STT</th>
                            <th>
                                <input type="checkbox" data-color="blue" data-skin="square" class="icheck-me" name="check_all" id="check_all"></th>
                            <th>Tiêu đề</th>
                            <th class='hidden-350'>Status</th>
                            <th class='hidden-1024'>Thứ tự</th>
                            <th class='hidden-480'>Options</th>
                        </tr>
                    </thead>
                    <tbody>
                        <asp:Repeater ID="rpList" runat="server">
                            <ItemTemplate>
                                <tr>
                                    <td><%# Container.ItemIndex + 1 %></td>
                                    <td><input data-color="blue" data-skin="square" class="icheck-me" type="checkbox" name="check" value="<%# Eval("PollID") %>"></td>
                                    <td><a href="?mod=polledit&itemid=<%# Eval("PollID") %>">  <%# Eval("Name") %></a></td>
                                    <td class="tb-gen-1"><span title="<%# Eval("PollID") %>" class="label <%# Eval("Published").ToString().Equals("True")?"label-satgreen":"label-lightred" %>" data-act="<%# Eval("PollID") %>"><%# Eval("Published").ToString().Equals("True")?"Đã bật":"Chưa bật" %></span></td>
                                    <td class="tb-gen-1"><span class="tb-val-order"><%#  Eval("DisplayOrder") %></span><input type="text" name="order" class="tb-text" title="<%# Eval("PollID") %>" value="<%# Eval("DisplayOrder") %>" /></td>
                                    <td class='hidden-480'><a href='?mod=polledit&itemid=<%# Eval("PollID") %>' class='btn' rel='tooltip' title='Sửa'><i class='fa fa-edit'></i></a>
                                        <a href='<%# Eval("PollID") %>' class='btn Delete' rel='tooltip' title='Xóa'><i class='fa fa-times'></i></a>
                                    </td>
                                </tr>
                            </ItemTemplate>
                        </asp:Repeater>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript">
    $(document).ready(function () {
        Poll();
    });
</script>